package org.example.StudentManagementSystem.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "教师实体类")
@TableName("teachers")
public class Teacher {
    @Schema(description = "教师ID", required = true, example = "1")
    @TableId(type = IdType.AUTO, value = "id")
    private Integer id;

    @Schema(description = "教师姓名", required = true, example = "张三")
    private String name;

    @Schema(description = "入职日期", required = true, example = "2023-01-01")
    private Date hireDate;

    @Schema(description = "教师邮箱", required = true, example = "zhangsan@example.com")
    private String email;

    @Schema(description = "教师电话", required = true, example = "12345678901")
    private String phone;
}
